/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-14
 * Time: 17:42
 */
public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree=new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();

        binaryTree.size(root);
        System.out.println(BinaryTree.nodeSize);
        System.out.println(binaryTree.size2(root));
        System.out.println("======================");
     binaryTree.getLeafNodeCount1(root);
        System.out.println(BinaryTree.leafSize);
        System.out.println(binaryTree.getLeafNodeCount2(root));
        System.out.println("===============");
        System.out.println(binaryTree.getHeight(root));
        System.out.println("=====================");
       BinaryTree.TreeNode root2=binaryTree.find(root,'H');
        System.out.println(root2.val);

    }


}
